using System.Collections.Generic;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class NpcCompareTarget : AIConditionBaseNode
    {
        public BBParameter<TargetType> targetType1 = TargetType.CurrentLockTarget;
        public BBParameter<TargetType> targetType2 = TargetType.PossibleTarget;

        protected override bool OnCheck()
        {
            AIEntity target1 = _entity.battleAgent.GetTarget(targetType1.value);
            AIEntity target2 = _entity.battleAgent.GetTarget(targetType2.value);
            
            return target1 == target2;
        }
    }
}